<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>

<link type="text/css" rel="stylesheet" href="../Public/css/reset.css">
<link type="text/css" rel="stylesheet" href="../Public/css/DateTimePicker.css">
<link type="text/css" rel="stylesheet" href="../Public/css/style.css">

<script type="text/javascript" src="../Public/script/jquery.js"></script>
<script type="text/javascript" src="../Public/script/distpicker.data.js"></script>
<script type="text/javascript" src="../Public/script/distpicker.js"></script>
<script type="text/javascript" src="../Public/script/DateTimePicker.js"></script>
<script type="text/javascript" src="../Public/script/jquery.SuperSlide.2.1.1.js"></script>
<script type="text/javascript" src="../Public/layer/layer.js"></script>

</head>

<body>
<include file="Common:header"/>
    
    <!--contain-->
    <div class="contain">
    	
        <div class="widthBlock">
            <div class="TDCont">
                
                <div class="local">
                    <a href="index.html">首页</a> &gt; 设计师
                </div>
    			 <input class="session" type="hidden" value="{$_SESSION['userr']}">
                <div class="TDCCont1">
    				<div class="img fl">
                    	<img width="400" height="400" src="Uploads/{$de.touxiang}">
                    </div>
                    <div class="info fr">
                    	<div class="name">
                        	<b>{$de.user}</b><img src="../Public/images/TD_icon01.png">{$de.area}
                                      <a class="favour <if condition='$sheji1 eq 1'>checked</if> "  href="javascript:;" data-id='{$de.id}'></a>
                        </div>
                        <div class="infoList">
                        	<ul>
                          <!--   	<li>
                                	<img src="../Public/images/TD_icon03.png">
                                    <p>56人预约</p>
                                </li> -->
                                <li>
                                	<img src="../Public/images/TD_icon04.png">
                                    <p>9.8分</p>
                                </li>
                                <li>
                                	<img src="../Public/images/TD_icon05.png">
                                    <p>{$count}套作品</p>
                                </li>
                                <li>
                                	<img src="../Public/images/TD_icon06.png">
                                    <p>{$de.baojia}元/㎡</p>
                                </li>
                                <li class="clear"></li>
                            </ul>
                        </div>
                        <h2><b>擅长风格：</b>{$de.fengge}</h2>
                        <h2><b>服务城市：</b>{$de.chengshi}</h2>
                        <h2><b>设计师理念：</b>{$de.linian}</h2>
                        
                    </div>
                    <div class="clear"></div>
                </div>
                
                <div class="TDCCont2">
                	<h1>设计方案（作品{$count}）</h1>
                    <div class="list">
                    	<ul>
                        	<volist  name="sheji" id='vo'>
                            <li>
                            	<a href="{:U('Sheji/fangan',array('id'=>$vo[id]))}"><img src="Uploads/{$vo.img}"></a>
                                <p><a href="{:U('Sheji/fangan',array('id'=>$vo[id]))}">{$vo.name}</a></p>
                            </li>
                              </volist>
                            <li class="clear"></li>
                        </ul>
                    </div>
                </div>
                
            </div>
        </div>
           	
    </div>
    <!--contain end-->
    
    <!--bottom2-->
    <div class="bottom2Blank"></div>
    <div class="bottom2">
    	<div class="widthBlock">
        	
            
        </div>
    </div>
    <!--bottom2 end-->
    
<include file="Common:footer"/>
    

<script>
jQuery(document).ready(function(e) {
    
	$(".favour").click(function(){

  if ($('.session').val()=='') {
    layer.alert('请登录后收藏');
  }else{


		if($(this).hasClass("checked"))
		{
			$(this).removeClass("checked");

 var id= $('.favour').attr('data-id');

            $.ajax({
                  url:'{:U("User/sheji1")}',
                  type:'post',
                  data:{
                      sheji:id
                  },
                  success:function(data){
                  if(data==1){

                    layer.msg('取消收藏',{time: 1000,});
                  }

  
                  }



            })

		}
		else
		{

			$(this).addClass("checked");

            var id= $('.favour').attr('data-id');
            $.ajax({
                  url:'{:U("User/sheji1")}',
                  type:'post',
                  data:{
                      sheji:id
                  },
                  success:function(data){
                  if(data==1){

                    layer.msg('收藏成功',{time: 1000,});
                  }


                  }



            })




		}}
	});
	
});
</script>
  <script type="text/javascript">document.getElementById("menu3").className="curr";</script>  
</body>
</html>
